package cn.bone.ou.vote.dto;

import lombok.Data;

import java.util.Date;

public class VoteDto {

    @Data
    public static class ListDto{
        private Integer id;
        private Integer communityId;    //小区编号
        private Integer voteRange;          //投票范围.默认为1
        private String title;           //标题
        private Date startTime;         //开始时间
        private Date endTime;           //结束时间
        private String content;         //详情
        private Date createTime;        //创建时间
        private Integer createUserId;   //创建人id
        private Integer state;          //状态
        private Integer voteCount;      //投票数量
    }

    @Data
    public static class ResultDetailDto{
        private Integer itemId;
        private String title;
        private Integer optionId;
        private String answerOption;
        private String answerContent;
        private Integer optionCount;
    }

    @Data
    public static class MemberDetailDto{
        private Integer userId;
        private String realName;
        private String phoneNum;
        private Integer gender;
        private String idCard;
        private String buildNum;
        private String unitNum;
        private String houseNum;
        private Date createTime;
    }

    @Data
    public static class MemberVoteDetailDto{
        private Integer itemId;
        private String title;
        private String answerOption;
        private String answerContent;
        private Integer hasChoose;
    }
}
